﻿using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;

namespace LoginServer
{
    public partial class Client
    {
        #region Fields

        /// <summary>
        /// The current client state.
        /// </summary>
        private int ClientState = 0;

        /// <summary>
        /// The tick of the received packet.
        /// </summary>
        private uint PacketTick = 0;

        #endregion

        #region Constructor

        /// <summary>
        /// Constructs a new client from socket.
        /// </summary>
        /// <param name="ClientSocket">Connection socket.</param>
        public Client(Socket ClientSocket)
        {
            this.ClientSocket = ClientSocket;

            this.SessionKey = Program.SessionManager.Generate();
            this.SendSessionKey();
        }

        #endregion
    }
}
